/**
 * This project create for studying propose at BUPT University. You can change or reuse this project anywhere
 */

package edu.bupt.ooad.library.ui;

import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;

import edu.bupt.ooad.library.Library;

/**
 * @author Hamed Abdollahpour
 */
public class Main {

    /**
     * Launch the application.
     */
    public static void main(String[] args) {

        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);

        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    Library library = new Library();
                    MainFrame frame = new MainFrame(library);
                    frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

}
